package com.yc.chaoshi.cs_manage.DTO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode
public class OrderDTO {

    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    private String username;
    /**
     * 订单项目id
     */
    private Integer orderitemId;

    /**
     * 配送方式(0自有物流 1顾客自提)
     */
    private Integer deliveryWay;

    /**
     * 地址id
     */
    private Integer adressId;

    /**
     * 订单状态0-待付款1-待发货2-已发货3-已完成4-无效订单）
     */
    private Integer confirmStatus;

    /**
     * 提交时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8",shape = JsonFormat.Shape.STRING)
    private LocalDateTime createTime;

    /**
     * 总金额
     */
    private Integer sumCount;

    /**
     * 支付时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GTM+8",shape = JsonFormat.Shape.STRING)
    private LocalDateTime payTime;

    /**
     * 0禁用 1启用
     */
    private Integer status;
}
